package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null;comment:名称"`
	Pass string `gorm:"type:varchar(40);not null;comment:密码"`
}

type Group struct {
	gorm.Model
	Name   string `gorm:"type:varchar(20);not null;comment:名称"`
	State  int    `gorm:"type:tinyint(1);default:2;not null;comment:状态:1-售空,2-未售空"`
	Num    int    `gorm:"type:int(11);not null;comment:库存"`
	UserId int    `gorm:"type:int(11);not null;comment:用户ID"`
}
